package cn.exrick.xboot.modules.content.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.base.entity.Role;
import cn.exrick.xboot.modules.content.entity.HontRole;
import cn.exrick.xboot.modules.content.entity.HontVo.HontRoleLevelVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 测试接口
 * @author Exrick
 */
public interface HontRoleService extends XbootBaseService<HontRole, String> {


    /**
     * 获取默认角色
     * @param defaultRole
     * @return
     */
    List<HontRole> findByDefaultRole(Boolean defaultRole);

    HontRole findByName(String name);

    /**
     * 名称模糊搜索
     * @param name
     * @return
     */
    List<HontRole> findByNameLike(String name);

    HontRole findHontRoleByUserId(String userId);

    List<HontRoleLevelVo> findRoleLevelById();
}